package com.charger.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.charger.chargingStation.domain.Chargingstation;
import com.charger.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.charger.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 隐患处理对象 risks
 *
 * @author xuan
 * @date 2024-11-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class RisksManage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 隐患管理主键
     */
    private Long risksId;

    /**
     * 充电站点外键
     */
    @Excel(name = "充电站点外键")
    private Long chargerId;

    /**
     * 隐患类型
     */
    @Excel(name = "隐患类型")
    private String risksType;

    /**
     * 隐患优先级
     */
    @Excel(name = "隐患优先级")
    private String priority;

    /**
     * 隐患内容
     */
    @Excel(name = "隐患内容")
    private String risksContent;

    /**
     * 处理表外键
     */
    @Excel(name = "处理表外键")
    private Long disposalId;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String state;

    /**
     * 登记时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date risksDate;

    /**
     * 逻辑删除
     */
    @Excel(name = "逻辑删除")
    @TableField(exist = false)
    private Long del;

    /*
        处理表对象
     */
    private Dispose dispose;

    /*
        充电站对象
     */
    private Chargingstation chargingstation;
}
